import http from '@/utils/http.js';

export default {
  listAdminIsland() {
    return http.get('/manage/island/admin')
  },
  getIslandInfo(params){
    return http.get('/island/info', {
      params
    });
  },
  updateIsland(islandDTO) {
    return http.post(`/manage/island/update`,islandDTO)
  },
  addIsland(params) {
    return http.post('/manage/island/add', params)
  },
  pageIslandUsers(params) {
    return http.get('/manage/island/user/page', {
      params
    })
  },
  updateIslandUserRole(params){
    return http.get('/manage/island/user/role/update', {
      params
    })
  },
  unbindIsland(params) {
    return http.get('/manage/island/user/unbind', {params})
  },
  pageIslandPosts(params) {
    return http.get('/manage/post/page', {
      params
    })
  },
  postUpdate(data) {
    return http.post('/manage/post/update',data)
  },
  pageIslandComments(params) {
    return http.get('/manage/post/comment/page', {
      params
    })
  },
  updateComment(params){
    return http.get('/manage/post/comment/update', {
      params
    })
  },
  pageIslands: function (params) {
    return http.get('/manage/island/page',{
      params
    })
  },
  batchBindUser(data) {
    return http.post('/manage/island/user/batch-bind',data)
  }
}
